package com.my.webhr.pro.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.my.webhr.pro.mapper.SalaryMapper;
import com.my.webhr.pro.pojo.Salary;
import com.my.webhr.pro.service.SalaryService;
@Service
public class SalaryServiceImpl implements SalaryService {
	@Autowired
	private SalaryMapper salaryMapper;
	@Override
	public int deleteOne(int sId) {
		return salaryMapper.deleteByPrimaryKey(sId);
	}

	@Override
	public int modifyOne(Salary salary) {
		return salaryMapper.updateByPrimaryKeySelective(salary);
	}

	@Override
	public int updateOne(Salary salary) {
		return salaryMapper.insertSelective(salary);
	}

}
